//
//  SwitchViewCell.m
//  LiveSoftware
//
//  Created by lanou3g on 15/7/24.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "SwitchViewCell.h"


@implementation SwitchViewCell



-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
       
        
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(kScreenIp6(15), kScreenIp6(0), kScreenIp6(200), kScreenIp6(44))];
//        self.label.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_label];
        
        
        CGFloat swWifiX = CGRectGetMaxX(_label.frame) + kScreenIp6(80);

        self.swWifi = [[UISwitch alloc]initWithFrame:CGRectMake(swWifiX, kScreenIp6(5), kScreenIp6(80), kScreenIp6(44))];
        
        CGFloat banbenX = CGRectGetMaxX(_label.frame) + kScreenIp6(70);
        self.banBen = [[UILabel alloc]initWithFrame:CGRectMake(banbenX, kScreenIp6(0),  kScreenIp6(80), kScreenIp6(44))];
        
        CGFloat huancunX = CGRectGetMaxX(_label.frame) + kScreenIp6(70);
        self.huancun = [[UILabel alloc]initWithFrame:CGRectMake(huancunX, 0,  kScreenIp6(80), kScreenIp6(44))];
        
    }
    
    
    return self;
    
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
